﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="HappyClubMemberUpdForm.aspx.cs" Inherits="App_Input_HappyClubMemberUpdForm"
    Title="亲和俱乐部会员登记" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script language="javascript" type="text/javascript">
        function openPersonSrh(index){
            var url  = "../Commons/MemberSearchForm.aspx";
	        var prm;	        
	        prm = "?CONTROL_ID=" + "<%= txtMemberId.ClientID %>";
	        prm += "&CONTROL_NAME=" + "<%= txtMemberName.ClientID %>";
	        url += prm;	        
	        var win = window.open(url,'HappyMemSrhForm','scrollbars,resizable,height=460,width=500');
	        win.focus();	        	        
        }
    </script>

    <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6">

                            <script language="javascript">
                                        (new TitleBar('SearchBar', '俱乐部信息')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
                <table class="table_border_line" style="background: ffffff">
                    <tr>
                        <td style="width: 10px; height: 24px;">&nbsp;</td>
                        <td style="width: 20%" align="left" nowrap class="list_data_bg_left">俱乐部名称：</td>
                        <td style="width: 25%" align="left" nowrap>&nbsp;<asp:Label ID="lblClubName" runat="server"
                            Text=""></asp:Label></td>
                        <td align="left" style="width: 20%" nowrap>&nbsp;俱乐部分类：</td>
                        <td align="left" style="width: 25%" nowrap>&nbsp;<asp:Label ID="lblClubType" runat="server"
                            Text=""></asp:Label></td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px">&nbsp;</td>
                        <td class="list_data_bg_left" style="width: 126px">部长：</td>
                        <td style="width: 414px">&nbsp;<asp:Label ID="lblClubLeader" runat="server" Text=""></asp:Label></td>
                        <td style="width: 414px">&nbsp;副部长：</td>
                        <td style="width: 414px">&nbsp;<asp:Label ID="lblClubAsst" runat="server" Text=""></asp:Label></td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">协助管家：</td>
                        <td style="width: 414px">&nbsp;<asp:Label ID="lblEmployee" runat="server" Text=""></asp:Label></td>
                        <td style="width: 414px">&nbsp;成员人数：</td>
                        <td style="width: 414px">&nbsp;<asp:Label ID="lblClubMemCnt" runat="server" Text=""></asp:Label></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">说明：</td>
                        <td style="" colspan="3">&nbsp;<asp:TextBox ID="lblMemo" runat="server" Rows="3"
                            TextMode="MultiLine" Width="99%" ReadOnly="True"></asp:TextBox></td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px"></td>
                        <td colspan="3"></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="6" align="center"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div id="Div1">
        <table width="100%" runat="server" id="tblMemList">
            <tr>
                <td align="left">

                    <script language="javascript">
                                        (new TitleBar('SearchBar', '成员情况')).showBar();
                    </script>

                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="viewSrhRst" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CssClass="GridView_table" DataKeyNames="MemberNo" BorderStyle="Solid" BorderWidth="3px"
                        EnableViewState="False" OnPageIndexChanging="viewSrhRst_PageIndexChanging" OnRowCommand="viewSrhRst_RowCommand" OnRowDataBound="viewSrhRst_RowDataBound">
                        <Columns>
                            <asp:BoundField HeaderText="会员编号" DataField="MemberNo" Visible="False">
                                <HeaderStyle Width="0px" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="会员姓名" DataField="MemberName">
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="年龄" DataField="Age">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="加入日期" DataField="BeginDate" DataFormatString="{0:yyyy/MM/dd}"
                                HtmlEncode="False">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="退出日期" DataField="EndDate" DataFormatString="{0:yyyy/MM/dd}"
                                HtmlEncode="False">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="状态" DataField="EndFlg">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:ButtonField ButtonType="Image" CommandName="Details" HeaderText="编辑" ImageUrl="~/images/edit.jpg">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle Width="5%" CssClass="GridView_head_grayblue" />
                            </asp:ButtonField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6">

                            <script language="javascript">
                                        (new TitleBar('SearchBar', '成员登记')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
                <table class="table_border_line" style="background: ffffff">
                    <tr>
                        <td style="width: 20px; height: 24px"></td>
                        <td align="left" class="list_data_bg_left" style="width: 155px">
                            <asp:Label ID="lblTableTitle" runat="server" Text="登记/修改 入会信息"></asp:Label></td>
                        <td align="left" style="width: 142px">&nbsp;</td>
                        <td align="left" style="width: 113px"></td>
                        <td align="left" style="width: 25%"></td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 20px; height: 24px;">&nbsp;<span style="color: #ff0000">*</span></td>
                        <td style="WIDTH: 155px" align="left" nowrap class="list_data_bg_left">会员编号：</td>
                        <td style="" align="left" nowrap colspan="3">&nbsp;<asp:TextBox ID="txtMemberId"
                            runat="server" MaxLength="11" Width="90px" ></asp:TextBox>
                            <asp:TextBox ID="txtMemberName" runat="server" MaxLength="10" Width="65px" contentEditable="false" BackColor="#E0E0E0"  BorderColor="#E0E0E0" TabIndex="-1"  ></asp:TextBox><a
                                href="#" onclick="javascript:openPersonSrh();">&nbsp;
                                <img id="Img3" runat="server" src="../../images/search.jpg" border="0" /></a>
                        </td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 20px; height: 24px">
                            <span style="color: #ff0000">*</span></td>
                        <td class="list_data_bg_left" style="width: 155px">操作：</td>
                        <td colspan="3">&nbsp;<asp:RadioButtonList ID="lstAttend" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Value="0">入会</asp:ListItem>
                            <asp:ListItem Value="1">退会</asp:ListItem>
                        </asp:RadioButtonList></td>
                        <td></td>
                    </tr>
                    <tr> 
                        <td style="width: 20px; height: 24px">
                            <span style="color: #ff0000">*</span></td>
                        <td class="list_data_bg_left" style="width: 155px">入会日期：</td>
                        <td style="width: 142px">&nbsp;<asp:TextBox ID="txtAttendDate" onfocus="new Calendar(1900,2015,0,null).show(this);"
                            runat="server" Width="90px" MaxLength="10" Height="22px"></asp:TextBox>
                        </td>
                        <td style="width: 113px">&nbsp;退会日期：</td>
                        <td>&nbsp;<asp:TextBox ID="txtQuitDate" onfocus="new Calendar(1900,2015,0,null).show(this);"
                            runat="server" Width="90px" MaxLength="10" Height="22px"></asp:TextBox></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="6" align="center"></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="height: 10px"></td>
        </tr>
        <tr>
            <td align="center" style="">&nbsp; &nbsp;&nbsp;<asp:Button ID="btnOk" runat="server"
                Text="  登 记  " Height="22px" Width="89px" CssClass="button" OnClientClick="javascript:return window.confirm('确定进行登记吗？');" OnClick="btnOk_Click" />&nbsp;
                <asp:Button ID="btnBack" runat="server" Text="  返 回  " Height="22px" Width="89px"
                    CssClass="button" OnClick="btnBack_Click" /></td>
        </tr>
    </table>
</asp:Content>
